You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `rights`&3!=0' at line 1
SELECT * FROM linkage WHERE `pid`= AND `rights`&3!=0

Fatal error: Call to a member function fetch_assoc() on a non-object in /home/musicanepr/allegro/sys/Content/Page.php on line 33